package com.cf.user.login;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * game-server-UserSystemProperty
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/5/29 下午 01:59
 */
@Configuration
@ConfigurationProperties(prefix = "zmm.user")
public class UserSystemProperty {

    /**
     * 登陆页面
     */
    private String loginPage = "/login.html";

    /**
     * 错误信息显示页
     */
    private String errorPage = "/error.html";

    /**
     * 登陆成功后跳转的地址
     */
    private String successPage = "/index";


    /**
     * 登陆地址，loginFilter会拦截此地址
     */
    private String loginPath = "/doLogin";

    /**
     * 登陆的渠道字段名字
     */
    private String loginChannel = "loginChannel";


    public String getSuccessPage() {
        return successPage;
    }

    public void setSuccessPage(String successPage) {
        this.successPage = successPage;
    }

    public String getLoginPage() {
        return loginPage;
    }

    public void setLoginPage(String loginPage) {
        this.loginPage = loginPage;
    }

    public String getErrorPage() {
        return errorPage;
    }

    public void setErrorPage(String errorPage) {
        this.errorPage = errorPage;
    }


    public String getLoginChannel() {
        return loginChannel;
    }

    public void setLoginChannel(String loginChannel) {
        this.loginChannel = loginChannel;
    }

    public String getLoginPath() {
        return loginPath;
    }

    public void setLoginPath(String loginPath) {
        this.loginPath = loginPath;
    }

}
